
class Order():
    def __init__(self, name, product, email, phone):
        self.name = name
        self.product = product
        self.email = email
        self.phone = phone

    def deliver_mail(self):
        print(f"to {self.email}\n Dear {self.name} \n Your purchased product:{self.product} is delivered!")
        print("Thanks for your choosing!")

    def deliver_sms(self):
        print(f"to {self.phone}\n Dear {self.name} \n Your purchased product:{self.product} is delivered!")
        print("Thanks for your choosing!")

order = [
    {'name':'Pony', 'product':'MacBook', 'email':'pony@qq.com', "phone":13856892093},
    {'name':'Bill', 'product':'AirPods', 'email':'bill@qq.com', "phone":13355689880},
    {'name':'Nike', 'product':'MacBook', 'email':'nike@qq.com', "phone":18056780216},
]

for dict in order:

    people = Order(**dict)
    print(people.deliver_mail())
    print(people.deliver_sms())
    print("\n")